求救web.xml中的<listener></listener>有什么用?

来源:百度知道 编辑:UC知道 时间:2024/06/04 17:27:45
求救web.xml中的<listener></listener>有什么用?
比如:
<listener>
<listener-class>
com.sitech.crmpd.core.config.WebContextLoaderListener
</listener-class>

</listener>

在web.xml中有什么用?
谢谢

WebContextLoaderListener 监听类~
它能捕捉到服务器的启动和停止! 在启动和停止触发里面的方法做相应的操作!
它必须在web.xml 中配置才能使用!
没别的用处!就是配置监听类的~